import ajax from "./ajax";

const baseUrl = 'http://localhost:3000/';
export const reqRole = () => {
    return ajax(baseUrl + 'role')
}
export const reqAddRole = (data) => {
    return ajax(baseUrl + 'role', data, 'post')
}
export const setPower = (id,data) => {
    return ajax(baseUrl + 'role/'+id, data, 'put')
}